package cn.tang.tframe.sdm.aop.handler;

import org.aspectj.lang.ProceedingJoinPoint;

import java.lang.reflect.Method;

/**
 * Created by tanghc on 17/1/18.
 */
public abstract class PreHandler extends AbstractorAopHandler {
	protected long startTime = System.currentTimeMillis();
	public void setStartTime(long startTime){
		this.startTime = startTime;
	}
	@Override
	protected boolean doHandler(ProceedingJoinPoint pjp, Object[] args, Method method, String className) {
		return doPreHandler(pjp,args,method,className);
	}
	protected abstract boolean doPreHandler(ProceedingJoinPoint pjp, Object[] args, Method method, String className);
}
